package pt.mynotesmain;

import android.os.Bundle;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.FrameLayout;

public class MyNotesDesenhaActivity extends Activity {
	AreaDesenho ad;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_notes_desenha);
    
        
        String str=getIntent().getStringExtra("titulo:");
        Log.i("titulo", str);
        
        
       FrameLayout f1 =(FrameLayout)findViewById(R.id.AreaDesenho);
        
       ad =new AreaDesenho(this);
       f1.addView(ad);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_my_notes_desenha, menu);
        return true;
    }
    
    public void onCancelar(View v){
    	finish();
    }
    public void onCriar(View v){
    	finish();
    }
}
